4d1fcc1c6770ea58a3a4ad67d25799b34275d368,platform/platform-impl/src/com/intellij/openapi/wm/impl/status/MemoryUsagePanel.java,MemoryUsagePanel,paintComponent,#Graphics#,109

Before Change


      final Graphics2D g2 = (Graphics2D)bg;

      final int yOffset = (size.height - barHeight) / 2;
      final int xOffset = insets.left + (SystemInfo.isMac ? 0 : 0);

      g2.setPaint(new GradientPaint(0, 0, Gray._190, 0, size.height - 1, Gray._230));
      g2.fillRect(xOffset, yOffset, totalBarLength, barHeight);

      g2.setPaint(new GradientPaint(0, 0, new Gray(200, 100), 0, size.height - 1, new Gray(150, 130)));
      g2.fillRect(xOffset + 1, yOffset, allocatedBarWidth, barHeight);

After Change


      final Graphics2D g2 = (Graphics2D)bg;

      final int yOffset = (size.height - barHeight) / 2;
      final int xOffset = insets.left;
      if (!UIUtil.isUnderAquaLookAndFeel()) {
        g2.setColor(UIUtil.getControlColor());
        g2.fillRect(xOffset, yOffset, totalBarLength, barHeight);
      } else {
        g2.setPaint(new GradientPaint(0, 0, Gray._190, 0, size.height - 1, Gray._230));
        g2.fillRect(xOffset, yOffset, totalBarLength, barHeight);

        g2.setPaint(new GradientPaint(0, 0, new Gray(200, 100), 0, size.height - 1, new Gray(150, 130)));
        g2.fillRect(xOffset + 1, yOffset, allocatedBarWidth, barHeight);